package com.bestvike.portal.data;

import com.fasterxml.jackson.annotation.JsonFormat;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Entity
@Table(name = "ess_allot")
public class EssAllot implements Serializable {

		public static final String ESS_ALLOT_STATE_UNABLE = "9999";//未激活
		public static final String ESS_ALLOT_STATE_ENABLE = "0000";//已激活
		public static final String ESS_ALLOT_STATE_LOCKED = "0001";//已锁定
		public static final String ESS_ALLOT_STATE_LOSTED = "0002";//已挂失
		public static final String ESS_ALLOT_STATE_CANCELD = "0003";//暂时用不到

		private static final long serialVersionUID = -1019531013619243707L;

		@Id
		private String deviceSn;
		private String deviceId;
		private String state;
		private String userId;
		private Date lastModifyDate;
		private String lastModifyUser;
		private String remark;

		public String getDeviceSn() {
				return deviceSn;
		}

		public void setDeviceSn(String deviceSn) {
				this.deviceSn = deviceSn;
		}

		public String getDeviceId() {
				return deviceId;
		}

		public void setDeviceId(String deviceId) {
				this.deviceId = deviceId;
		}

		public String getState() {
				return state;
		}

		public void setState(String state) {
				this.state = state;
		}

		public String getUserId() {
				return userId;
		}

		public void setUserId(String userId) {
				this.userId = userId;
		}

		@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
		public Date getLastModifyDate() {
				return lastModifyDate;
		}

		public void setLastModifyDate(Date lastModifyDate) {
				this.lastModifyDate = lastModifyDate;
		}

		public String getLastModifyUser() {
				return lastModifyUser;
		}

		public void setLastModifyUser(String lastModifyUser) {
				this.lastModifyUser = lastModifyUser;
		}

		public String getRemark() {
				return remark;
		}

		public void setRemark(String remark) {
				this.remark = remark;
		}
}
